/*
 * @Author: Dee Dee
 * @Date: 2021-05-17 00:59:20
 * @LastEditors: Dee Dee
 * @LastEditTime: 2023-10-10 11:13:15
 * @FilePath: /培训认证系统20230327/src/store/getters.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const getters = {
    sidebar: state => state.app.sidebar,
    size: state => state.app.size,
    device: state => state.app.device,
    visitedViews: state => state.tagsView.visitedViews,
    cachedViews: state => state.tagsView.cachedViews,
    token: state => state.user.token,
    avatar: state => state.user.avatar,
    id: state => state.user.id,
    admin: state => state.user.admin,
    unread_msg_count: state => state.user.unread_msg_count,
    name: state => state.user.name,
    introduction: state => state.user.introduction,
    roles: state => state.user.roles,
    cur_role: state => state.user.cur_role,
    permissions: state => state.user.permissions,
    permission_routes: state => state.permission.routes,
    sidebarRouters: state => state.permission.sidebarRouters,
}
export default getters